package com.ssy.lingxi.system.model.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * 修改会员注册资料 - 修改枚举标签值
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-08
 */
public class MemberConfigLabelUpdateVO implements Serializable {

    private static final long serialVersionUID = -1118022185815389668L;

    /**
     * 标签id，如果为0则表示新增，如果不为0则表示修改
     */
    @NotNull
    @PositiveOrZero(message = "标签Id要大于等于0")
    private Long id;

    /**
     * 字段类型值
     */
    @NotBlank(message = "字段类型值不能为空")
    private String value;

    /**
     * 字段类型值的顺序
     */
    @NotNull(message = "字段类型值的顺序要大于0")
    @Positive(message = "字段类型值的顺序要大于0")
    private Integer order;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }
}
